<?php

$hostName = gethostname();
//var_dump($hostName);
if($hostName == 'web-01')
{
		$config['dbhost'] = 'rdsjg3zfk4i0wrm5y777o.mysql.rds.aliyuncs.com';      //数据库所在IP			$config['dbport'] = '3306';  //数据库用户
		$config['dbuser'] = 'newyangwanyi';  //数据库用户
		$config['dbpass'] = 'yangwanyi616';   	 //数据库密码
		$config['dbname'] = 'new_ywy';     //数据库名
		$config['table_pre']='haiou_';  //数据库表前缀
		$config['authkey']='921919c0e99e7b287831e6cb45ac1213';  //数据库表前缀
}elseif($hostName == 'test'){
		$config['dbhost'] = 'rdsjg3zfk4i0wrm5y777o.mysql.rds.aliyuncs.com';      //数据库所在IP			$config['dbport'] = '3306';  //数据库用户
		$config['dbuser'] = 'newyangwanyi';  //数据库用户
		$config['dbpass'] = 'yangwanyi616';   	 //数据库密码
		$config['dbname'] = 'new_ywy';     //数据库名
		$config['table_pre']='haiou_';  //数据库表前缀
		$config['authkey']='921919c0e99e7b287831e6cb45ac1213';  //数据库表前缀
}elseif($hostName == 'Server'){
        $config['dbhost'] = '192.168.0.125';      //数据库所在IP			$config['dbport'] = '3306';  //数据库用户
        $config['dbuser'] = 'root';  //数据库用户
        $config['dbpass'] = 'root';   	 //数据库密码
        $config['dbname'] = 'localhostywy';     //数据库名
        $config['table_pre']='haiou_';  //数据库表前缀
        $config['authkey']='921919c0e99e7b287831e6cb45ac1213';  //数据库表前缀
}
?>
